package com.glwan.fixedassetapp.common;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Deprecated
public class ExcelTemplateConstant {
    public static final String[] ASSET_IMPORT_TEMPLATE_NEW = {
            "资产类别",
            "卡片编码",
            "资产名称",
            "计量单位",
            "资产数量",
            "资产编码",
            "资产位置",
            "单据状态",
            "盘点状态",
            "盘点单编号"
    };
    public static final List<String> ASSET_IMPORT_TEMPLATE_COLUMN_ARRAY_NEW = Arrays.asList(
            "fAssetTypeName",
            "fNumber",
            "fName",
            "fUnitName",
            "fQuantity",
            "fAssetNO",
            "fPositionName",
            "fDocumentStatus",
            "fHasCount",
            "fCountBillNo"
    );


    //    public static Map<String, String> getDatabaseKeyMapping() {
//        Map<String, String> databaseKeys = new HashMap<>();
//        for (int i = 0; i < ASSET_IMPORT_TEMPLATE.length; i++) {
//            databaseKeys.put(ASSET_IMPORT_TEMPLATE[i], ASSET_IMPORT_TEMPLATE_COLUMN_ARRAY.get(i));
//        }
//        return databaseKeys;
//    }
    public static Map<String, String> getDatabaseKeyMappingNew() {
        Map<String, String> databaseKeys = new HashMap<>();
        for (int i = 0; i < ASSET_IMPORT_TEMPLATE_NEW.length; i++) {
            databaseKeys.put(ASSET_IMPORT_TEMPLATE_NEW[i], ASSET_IMPORT_TEMPLATE_COLUMN_ARRAY_NEW.get(i));
        }
        return databaseKeys;
    }


}
